import request from "@/utils/request";

//指定报关货值列表
export function getDeclareValue(data) {
  return request({
    url: `/out/ps-declare-value/index`,
    method: "post",
    data,
  });
}
//指定报关货值导入
export function importDeclareValue(data) {
  return request({
    url: `/out/ps-declare-value/import`,
    method: "post",
    data,
  });
}

//获取报关货值系数配置
export function getDeclareValueConfig(params) {
  return request({
    url: `/out/ps-declare-value/get-conf-sp-ratio`,
    method: "get",
    params,
  });
}
//设置报关货值系数配置
export function setDeclareValueConfig(data) {
  return request({
    url: `/out/ps-declare-value/set-conf-sp-ratio`,
    method: "post",
    data,
  });
}
//供应商报关货值系数配置列表
export function getSupplierDeclare(data) {
  return request({
    url: `/out/supplier-declare-ratio/index`,
    method: "post",
    data,
  });
}
//供应商报关货值系数配置新增
export function AddSupplierDeclare(data) {
  return request({
    url: `/out/supplier-declare-ratio/create`,
    method: "post",
    data,
  });
}
//供应商报关货值系数配置修改
export function updateSupplierDeclare(data) {
  return request({
    url: `/out/supplier-declare-ratio/update`,
    method: "post",
    data,
  });
}
//供应商报关货值系数配置详情
export function supplierDeclareDetail(params) {
  return request({
    url: `/out/supplier-declare-ratio/detail`,
    method: "get",
    params,
  });
}
//供应商报关货值系数配置删除
export function deleteSupplierDeclare(data) {
  return request({
    url: `/out/supplier-declare-ratio/delete`,
    method: "post",
    data,
  });
}
